package org.myspringmvc.web.servlet;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

/**
 * @ClassName: HandlerAdapter
 * @Author: YLY
 * @Description: 处理器适配器接口
 * @Date: 2025/9/21
 * @Version: 1.0
 */
public interface HandlerAdapter {

    /**
     * 执行处理器方法
     * @param request
     * @param response
     * @param handler
     * @return
     * @throws Exception
     */
    ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception;

}
